#include "LiquidHandlerSlave.hpp"

using namespace std;

LiquidHandlerSlave::LiquidHandlerSlave(std::wstring name, GeneralSlave* pumpRef, GeneralSlave* motionRef) {
	referenceName = name;
	// allocated here but must be collected and managed outside
	if (pumpRef != nullptr) {
		pumpSlave = new StepperPumpSlave(pumpRef);
		pumpSlave->_meta.type = L"robotic,pump,syringe";
		pumpSlave->_meta.partOfComboSlave = referenceName;
	}
	if (motionRef != nullptr) {
		motionSlave = new RoboticSlave(motionRef);
		motionSlave->_meta.type = L"robotic,mover";
		motionSlave->_meta.partOfComboSlave = referenceName;
	}
}

LiquidHandlerSlave::~LiquidHandlerSlave() {

}